/*
 *
 *      Copyright (c) 2018-2025, proj All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the pig4cloud.com developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: proj
 *
 */

package com.ykht.proj.coupon.api.feign;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.ykht.proj.common.core.constant.SecurityConstants;
import com.ykht.proj.common.core.constant.ServiceNameConstants;
import com.ykht.proj.common.core.util.R;
import com.ykht.proj.coupon.dto.UserExtDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;


@FeignClient(contextId = "remoteUserExtService", value = ServiceNameConstants.COUPON_SERVICE)
public interface RemoteUserExtService {


/*
	*/
/**
	 * 根据用户角色和登录id获取用户扩展信息
	 *
	 * @param userType
	 * @param loginId
	 * @return
	 *//*

	@GetMapping("/user/getUserExt")
	R getUserExt(@RequestParam("userType") Integer userType, @RequestParam("loginId") Long loginId);

	@GetMapping("/user/getUserExt4Inner")
	R getUserExt4Inner(@RequestParam("userType") Integer userType, @RequestParam("loginId") Long loginId, @RequestHeader(SecurityConstants.FROM) String from);
*/

	/**
	 * 获取多用户 的绑定数据（根据登录人角色）
	 *
	 * @param userReqList
	 * @return
	 */
	@GetMapping("/user/getUserExtDtoMapLogingTyoe")
	R<HashMap<Integer, List>> getUserExtDtoMapLogingTyoe(@RequestBody() List<UserExtDto> userReqList);

	@PostMapping("/user/getUserExtList")
	R getUserExtList(@RequestBody UserExtDto userExtDto, @RequestHeader(SecurityConstants.FROM) String from);

	/**
	 * 验证切换用户是否可以切换
	 * @param userExt
	 * @return
	 */
	@PostMapping("/user/checkChangeSj" )
	R checkChangeSj(UserExtDto userExt);
}
